#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;

int& tem()
{
	int a = 3;
	return a;
}

int main()
{
	/*cout << tem() << endl;
	cout << tem() << endl;*/
	printf("%d\n", tem());
	printf("%d", tem());
	return 0;
}